using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BulletBoom1 : MonoBehaviour
{
    public float boomKeepTime = 0.2f;
    private float boomTime;


    // Start is called before the first frame update
    void Start()
    {
        boomTime = Time.time;
    }

    // Update is called once per frame
    void FixedUpdate()
    {
        if (boomTime > 0 && Time.time - boomTime > boomKeepTime)
        {
            Destroy(gameObject);
        }
    }

}
